#include<stdio.h>
int main(int argc,char const *argv[])
{
int nian;  
//int tui;  
    while(1)
    {
      printf("请输入年份: ");
      scanf("%d",&nian);
      
      if(nian==-1)
      {
      break;
      }
      else if((nian%4==0 && nian%100!=0) || nian%400==0)
      {
        printf("%d闰年",nian);
      }
      else 
      {
        printf("%d平年",nian);
      }
      
    }
    return 0;
}